AC_PREREQ(2.60)
AC_INIT([TP Sistemas Graficos], [0.1], [hpk2987@yahoo.com])
AM_INIT_AUTOMAKE
AC_CONFIG_HEADER([config.h])
AC_ENABLE_SHARED
AM_SANITY_CHECK
AC_LANG([C++])

# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AC_PROG_CPP
AC_PROG_INSTALL
AM_PROG_LIBTOOL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_RANLIB

# Checks for header files.

AC_CHECK_HEADER([tr1/functional], [AC_DEFINE([HAVE_TR1_FUNCTIONAL], [1], [Define to 1 if you have <tr1/functional>.])], [AC_MSG_ERROR([Sorry, can't do anything for you])])

AC_CHECK_HEADER([png.h], [AC_DEFINE([HAVE_PNG], [1], [Define to 1 if you have <png.h>.])], [AC_MSG_ERROR([Sorry, can't do anything for you])])

AC_CHECK_HEADER([obj.hpp], [AC_DEFINE([HAVE_OBJ], [1], [Define to 1 if you have <obj.pph>.])], [AC_MSG_ERROR([Sorry, can't do anything for you])])

AC_CONFIG_FILES([
Makefile
src/Makefile
src/controller/Makefile
src/model/actions/Makefile
src/model/objectModel/Makefile
src/model/objects/Makefile
src/model/Makefile
src/view/Makefile
src/view/camera/Makefile
utils/Makefile
utils/common/Makefile
utils/mapGenerator/Makefile
utils/mapGenerator/src/Makefile
utils/mapTextureGenerator/src/Makefile
utils/mapTextureGenerator/Makefile
utils/treeGenerator/Makefile
utils/treeGenerator/src/Makefile
])
AC_OUTPUT
